
import { createRouter, createWebHistory } from 'vue-router'

  const routes = [
      {
         path: '/',
         redirect: '/home'
      },
      {
         path: '/home',
         name: 'Home',
         component: () => import('../views/home/Home.vue'),
         },
      {
         path: '/profile',
         name: 'Profile',
         component: () => import('../views/profile/Profile.vue'),
         },
      {
         path: '/category',
         name: 'Category',
         component: () => import('../views/category/Category.vue'),
   
         },
      {
         path: '/cart',
         name: 'Cart',
         component: () => import('../views/cart/Cart.vue'),
        
         },
      {
         path: '/detail/:iid',
         name: 'Detail',
         component: () => import('../views/detail/Detail.vue')
      }
   ]


  const router = createRouter({
	history: createWebHistory(),
	routes
})
  export default router